package com.peng.spring.eg1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author peng
 * @Date 2024-04-16 14:32
 */
public class TestProduct {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext("com.peng.spring.eg1");
        Product product = annotationConfigApplicationContext.getBean(Product.class);
        System.out.println("product = " + product);
    }
}
